import request from './request';

// 获取预约列表
export function getReservationList(params) {
  return request({
    url: '/reservation/admin/list',
    method: 'get',
    params
  });
}

// 获取预约详情
export function getReservationDetail(id) {
  return request({
    url: `/reservation/detail/${id}`,
    method: 'get'
  });
}

// 更新预约状态
export function updateReservationStatus(id, status) {
  return request({
    url: `/reservation/status/${id}`,
    method: 'put',
    params: { status }
  });
} 